<extend name="Layout/ins_page" />
<block name="content">
{:W('PageHeader/adv_search',array('name'=>$folder_name,'search'=>'M'))}
<form method="post" name="form_adv_search" id="form_adv_search">

	<div class="adv_search panel panel-default hidden" id="adv_search">
	
		<div class="panel-heading">
			<div class="row">
				<h4 class="col-xs-6">高级搜索</h4>
				<div class="col-xs-6 text-right">
					<a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>
					<a  class="btn btn-sm" onclick="close_adv_search();">关闭</a>
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_name">性别：</label>
				<div class="col-sm-8">
					<select class="form-control" name="sex" id="sex">
						<option value="">全部</option>
						<option value="male">男</option>	
						<option value="female">女</option>					
					</select>
				</div>
			</div>

			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_type">部门：</label>
				<div class="col-sm-8">
					<select class="form-control" name="dept" id="eq_type">
						<option value="">全部</option>
						<?php foreach($d_list as $dvo ){?>
							<option <?php if($dept_id==$dvo['id']){echo "selected='selected'";}?> value="<?php echo $dvo['id']?>" ><?php echo $dvo['name']?></option>
						<?php }?>
					</select>
				</div>
			</div>

			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_user_name">员工名称：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="keyworkd_" name="keyword" value="<?php echo $keyword ?>">
				</div>
			</div>
			
			
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_type">职位：</label>
				<div class="col-sm-8">
					<select class="form-control" name="pid" id="">
						<option value="">全部</option>
						<?php foreach($plist as $dvo ){?>
							<option <?php if($pid==$dvo['id']){echo "selected='selected'";}?> value="<?php echo $dvo['id']?>" ><?php echo $dvo['name']?></option>
						<?php }?>
					</select>
				</div>
			</div>

			
		</div>
	</div>
</form>
<div class="ul_table ul_table_responsive">
	<ul>
		<li class="thead" style="padding-left:10px">
			<div class="pull-left">
				<span class="col-13 ">编号</span>
				<span class="col-13 ">名称</span>	
				<span class="col-13 ">性别</span>	
				<span class="col-13 ">部门</span>	
				<span class="col-13 ">职位</span>	
				<span class="col-13 ">手机号码</span>	
				<span class="col-15 ">邮箱</span>	
							
			</div>
			<div class="pull-right">
							
				
			</div>
			
			<div class="autocut auto">
			
		</li>
	</ul>
	<empty name="list">
		<ul>
			<li class="no-data">
				没找到数据
			</li>
		</ul>
		<else/>
		<form method="post" action="" name="form_data" id="form_data">
			<ul>
				
				<?php foreach($list as $vo){
				 if($vo['emp_no']=='admin') continue;
				?>
					<li class="tbody ">
						<div class="pull-left">
							<span class="col-13 "><?php echo $vo['id']?></span>
							<span class="col-13 "><?php echo $vo['name']?></span>
							<span class="col-13 "><?php echo $vo['sex']=='male'?'男':'女'?></span>
							<span class="col-13 "><?php echo $vo['dept_name']?></span>
							<span class="col-13 "><?php echo $vo['position_name']?></span>
							<span class="col-13 "><?php echo $vo['mobile_tel']?:'-'?></span>
							<span class="col-15 "><?php echo $vo['email']?></span>

						</div>
						<div class="pull-right">
							
							
						</div>
						<div class="autocut auto">
						
							 </div>
					</li>
				<?php } ?>
			</ul>
		</form>
		<div class="pagination">
			{$page}
		</div>
	</empty>
</div>
</block>
<block name="js">
<script type="text/javascript">
	$(document).ready(function() {
		set_return_url();
	}); 
</script>
</block>